public class TestBreak {
    public static void main(String[] args){
        int count = 0;
        while (true) {
            int a = (int) (Math.random() * 100) + 1;
            System.out.println(a);
            if (a == 88) {
                break;
            }
            count++;
        }
        System.out.println(count);
    }
}
